export const isMacintosh = navigator.userAgent.indexOf("Macintosh") >= 0;
export function toCtrlCmd(ctrl: boolean, meta: boolean): boolean {
  return isMacintosh ? meta : ctrl;
}
export function toWinCtrl(ctrl: boolean, meta: boolean): boolean {
  return isMacintosh ? ctrl : meta;
}
